#{extends 'main.html' /}
#{set title:'Home' /}

        <h1>Homes</h1>
#{list items:homes}
        ${_}
#{/list}
        <h1>People</h1>
#{list items:people}
        ${_}
#{/list}

<form action="/Application/addHouse">
    <input type="text" name="address" id="address"/><br/>
    <input type="submit">Create House</input><br/>
</form>

<form action="/Application/addPerson">
    Name  : <input type="text"  name="name" id="name"/><br/>
    <select id="houseId" name="houseId">
        #{list items:homes}
            <option value="${_.id}">${_}</option>
        #{/list}
    </select>
    <input type="submit">Create Person</input><br/>
</form>